package com.genokon.sentinel.controller;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author by baichaoda
 * @date 2020/7/27 15:55
 */
@RestController
public class TestSenController {
    @GetMapping("hello")
    @SentinelResource("resource-hello")
    public String hello(){
        return "hello!";
    }
}
